package common;

import java.net.URI;

import broker.Broker;

public class BrokerRef {

	public Broker broker;
	public URI uri;

	public BrokerRef() {
		super();
	}

	public BrokerRef(URI uri, Broker broker) {
		super();
		this.uri = uri;
		this.broker = broker;
	}

	@Override
	public boolean equals(Object other) {
		if (other instanceof BrokerRef) {
			BrokerRef otherBrokerRef = (BrokerRef) other;
			if (this.uri.equals(otherBrokerRef.uri))
				return true;
			else
				return false;
		} else {
			return super.equals(other);
		}
	}
}
